package com.ruoyi.wjq.mapper;

import java.util.List;

import com.ruoyi.fk.domain.Question;
import com.ruoyi.wjq.domain.AnswerRecord;
import org.apache.ibatis.annotations.Mapper;

/**
 * 答题记录Mapper接口
 * 
 * @author wjq
 * @date 2025-08-13
 */
@Mapper
public interface AnswerRecordMapper 
{
    /**
     * 查询答题记录
     * 
     * @param id 答题记录主键
     * @return 答题记录
     */
    public AnswerRecord selectAnswerRecordById(Long id);

    /**
     * 查询答题记录列表
     * 
     * @param answerRecord 答题记录
     * @return 答题记录集合
     */
    public List<AnswerRecord> selectAnswerRecordList(AnswerRecord answerRecord);
    
    /**
     * 查询答题记录与题库关联列表
     * 
     * @param answerRecord 答题记录
     * @return 答题记录集合
     */
    public List<AnswerRecord> selectAnswerRecordWithBankList(AnswerRecord answerRecord);

    /**
     * 根据ID数组查询题目列表
     *
     * @param ids 题目ID数组
     * @return 题目列表
     */
    public List<AnswerRecord> selectQuestionByIds(Long[] ids);


    /**
     * 新增答题记录
     * 
     * @param answerRecord 答题记录
     * @return 结果
     */
    public int insertAnswerRecord(AnswerRecord answerRecord);

    /**
     * 修改答题记录
     * 
     * @param answerRecord 答题记录
     * @return 结果
     */
    public int updateAnswerRecord(AnswerRecord answerRecord);

    /**
     * 删除答题记录
     * 
     * @param id 答题记录主键
     * @return 结果
     */
    public int deleteAnswerRecordById(Long id);

    /**
     * 批量删除答题记录
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteAnswerRecordByIds(Long[] ids);

}
